<?php

$content = <<<STR
<?php
  echo date("y m d h i s");
STR;

file_put_contents('test.php',$content);
